package com.corechina.apex_osswords.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 工单表
 * </p>
 *
 * @author cc
 * @since 2022-03-11
 */
@Getter
@Setter
@TableName("core_work_order")
@ApiModel(value = "CoreWorkOrder对象", description = "工单表")
public class CoreWorkOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("项目id")
    private Integer projectId;

    @ApiModelProperty("0 系统 1 客户")
    private Integer createUserType;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("故障内容")
    private String failureDescription;

    @ApiModelProperty("故障图片")
    private String failureImage;

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty("计划时间")
    private Date planTime;

    @ApiModelProperty("处理描述")
    private String disposeDescription;

    @ApiModelProperty("处理图片")
    private String disposeImage;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty("处理时间")
    private LocalDateTime disposeTime;

    @ApiModelProperty("处理结果 0 已解决 1 未解决")
    private Integer disposeResult;

    @ApiModelProperty("指定处理人")
    private Integer recipient;

    @ApiModelProperty("状态 0 待审 1 进行中 2 处理完成")
    private Integer state;

    @ApiModelProperty("创建人")
    private Integer creator;

    @ApiModelProperty("报修人id")
    private Integer repairId;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("单号")
    private String orderNo;

    @ApiModelProperty("企业id")
    private Integer enterpriseId;

    @ApiModelProperty("设备id")
    private Integer equipmentId;

    @ApiModelProperty("验收人id")
    private Integer auditor;

    @ApiModelProperty("验收时间")
    private LocalDateTime auditTime;

    @ApiModelProperty("验收意见")
    private String auditOpinion;

}
